<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../../js/封装的函数.js"></script>
</head>

<body>
    <input type="text"  id="input1">
    <button id="btn">判断</button>
    <input type="text"  id="input2">
</body>
<script>
    // var num1 = document.getElementById("input1");
    // var btn = document.getElementById("btn");
    // var num2 = document.getElementById("input2");

    btn.onclick = function(){
        var Salary = input1.value*1;
        var x= getSalaryAfter(Salary);
        input2.value = x;
    }
    // var Salary = parseInt(prompt("请输入工资："));
    // var x= getSalaryAfter(Salary);
    // document.write(x);

    
    // var nowWater = parseInt(prompt("请输入缸中有多少水："));
    // document.write(getWater(nowWater));


    // document.write("100-999的水仙花数为：<br>");  
    // isDaffodil();

</script>

</html>